from flask import Flask

# app = Flask(__name__)
#
#
# @app.route('/')
# def hello_world():
#     return 'Hello World!'
#
#
# if __name__ == '__main__':
#     app.run()

from app import create_app
#测试
#ces

app=create_app()#app--flask核心对象
# app.config.from_object('config')
if __name__ == '__main__':
    # app.config['JSON_AS_ASCII']=False#解决中文编码问题
    app.run(host='127.0.0.1',debug=True,threaded=True)#开启多线程：单进程多线程
    # app.run(host='0.0.0.0',debug=DEBUG)